package com.bitin.adorn.modules.account;

import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;

@Data
@Builder
public class PrepaidTaxResult {
    /**
     * 应纳税所得额
     */
    private BigDecimal taxableIncome;
    /**
     * 税率
     */
    private BigDecimal taxRate;
    /**
     * 速算扣除数
     */
    private BigDecimal quickDeduction;
    /**
     * 本期应预扣预缴税额
     */
    private BigDecimal tax;

    public static PrepaidTaxResult empty(){
        return PrepaidTaxResult.builder()
            .taxableIncome(BigDecimal.ZERO)
            .taxRate(BigDecimal.ZERO)
            .quickDeduction(BigDecimal.ZERO)
            .tax(BigDecimal.ZERO)
            .build();
    }
}
